package com.lu.integrate.message.center.model.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lu.integrate.message.center.model.enums.MessageQueueLogsStatusEnum;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 系统消息队列日志(sys_message_queue_logs)实体类
 *
 * @author showlu
 * @since 2023-02-13 17:22:06
 * @description 
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sys_message_queue_logs")
public class SysMessageQueueLogs implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
	private Long id;
    /**
     * sys_message_queue_config表id
     */
    private Long configId;
    /**
     * 状态 0待执行;1执行中;2执行成功;-1执行失败
     * @see MessageQueueLogsStatusEnum
     */
    private Integer status;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    /**
     * 执行开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date startExecuteTime;
    /**
     * 执行结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endExecuteTime;
    /**
     * 消息
     */
    private String message;
    /**
     * 执行结果
     */
    private String executeResult;

}